home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14647 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  919 b 

  1. Path: paulg53.escape.com!user
  2. From: paulg53@escape.com (Paul A. Gusmorino)
  3. Newsgroups: comp.lang.c++
  4. Subject: Derived Class Woes
  5. Date: Mon, 01 Apr 1996 09:29:47 -0500
  6. Organization: PAG3 Software
  7. Message-ID: <paulg53-0104960929470001@paulg53.escape.com>
  8. NNTP-Posting-Host: paulg53.escape.com
  9.  
  10. I'm having trouble with some code I'm writing. All the class and member
  11. function names have been changed to protect the innocent, but the prblem
  12. is real :-) I have a class, let's call it TApp. TApp has two member
  13. functions Run and DoSomething. Run is just a big loop that keeps calling
  14. DoSomething until the user quits. I've derived a class from TApp called
  15. MyApp. In MyApp I've written a new DoSomething. My problem is that when I
  16. call MyApp's Run (which was inherited from TApp), then it calls TApp's Run
  17. and NOT MyApp's Run. Is there a way to solve the problem?
  18.  
  19. Thanks a million,
  20. Paul A. Gusmorino 3rd <paulg53@escape.com>
  21.